def benchmark(action_desc, &block)
  start = Time.now
  yield
  puts "Finish #{action_desc} in #{Time.now - start} seconds" unless ENV["EVRL_DISABLE_BENCHMARK_MESSAGE"] == 'true'
end

def require_all(dir)
  Dir.foreach(dir) do |file|
    require File.join(dir, file) unless File.directory?(File.join(dir, file))
  end
end